/**   
 * @Title: TopImageCommunicater.java 
 * @Package com.esun.rabbit2.communicaters.lotteryhalltopmsg 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author: City Jiangsy@500wan.com   
 * @date: 2012-1-13 下午6:02:54  
 * Copyright: (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.rabbit2.communicaters.lotteryhalltopmsg;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.parsers.ParserConfigurationException;

import org.apache.http.client.ClientProtocolException;
import org.xml.sax.SAXException;

import com.esun.config.BussinessCode;
import com.esun.config.Config;
import com.esun.config.Key;
import com.esun.network.ServerCommunicater;
import com.esun.util.HashMapUtil;

/**
 * @ClassName: TopImageCommunicater
 * @Description: (购彩大厅顶部图片显示接口)
 * @author: Billy Qigs@500wan.com
 * @date: 2012-07-10 下午3:13:54
 * 
 */
public class GetActivityInfoCommunicater extends ServerCommunicater {

	public boolean isGetInfoSucced(String channel, String version) throws ClientProtocolException, IOException, ParserConfigurationException, SAXException {
		boolean isSucceed = false;
		ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();
		list.add(HashMapUtil.getMapItem(BussinessCode.PASER_MID, BussinessCode.MID_GET_ACTIVITY_INFO));
		list.add(HashMapUtil.getMapItem(BussinessCode.PASER_CK, Config.NULLMARK));
		list.add(HashMapUtil.getMapItem(Key.KEY_CHANNEL, channel));
		list.add(HashMapUtil.getMapItem(Key.KEY_VERSION, version));
		// 写入服务器返回信息
		super.getServerResponse(list, true);
		if (super.getState() == 100) {
			isSucceed = true;
		} else {
			isSucceed = false;
		}
		return isSucceed;
	}

}
